﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SubstituteDrivingAdd.aspx.cs" Inherits="WISD.CarFriend.Web.OA.Module.SubstituteDriving.SubstituteDrivingAdd" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
        <title>新增酒后代驾信息</title>
        <link rel="stylesheet" type="text/css" href="../../Content/CSS/ClientCSS/Style.css" />
        <script type="text/javascript" src="../../Scripts/CommonScripts/jquery-1.3.2.min.js"></script>
        <script type="text/javascript" src="../../Scripts/CommonScripts/jquery.validate.min.js"></script>
        <script type="text/javascript" src="../../Scripts/CommonScripts/cursorfocus.js"></script>
        <script type="text/javascript" src="../../Scripts/CommonScripts/messages_cn.js"></script>
        <script type="text/javascript">
            $(function () {
                //表单验证JS
                $("#form1").validate({
                    //出错时添加的标签
                    errorElement: "span",
                    success: function (label) {
                        //正确时的样式
                        label.text(" ").addClass("success");
                    }
                });
            });

            jQuery(document).ready(function () {
                jQuery.validator.addMethod("checkVehicle", function (value, element) {
                    var tel = /^[\u4e00-\u9fa5]{1}[A-Z]{1}[A-Z_0-9]{5}$/;
                    return tel.test(value) || this.optional(element);
                }, "车牌号码规则：第一个必须是汉字，第二个必须是大写字母，后5个必须是大写字母或数字");
            });    

        </script>
    </head>
<body style="padding:10px;">
    <form id="form1" runat="server">
        <div class="navigation">
          <span class="back"><a href="SubstituteDrivingList.aspx">返回列表</a></span><b>您当前的位置：首页 &gt; 酒后代驾管理 &gt; 新增酒后代驾信息</b>
        </div>
        <div style="padding-bottom:10px;"></div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
            <tr>
                <th colspan="2" align="left">新增酒后代驾信息</th>
            </tr>
            <tr>
                <td width="15%" align="right">代驾编号：</td>
                <td width="85%">
                    <asp:TextBox ID="txtMemo3" runat="server" CssClass="input w380 required" 
                        maxlength="250" minlength="1" HintTitle="代驾编号" HintInfo="代驾编号" ReadOnly="true"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="15%" align="right">姓名：</td>
                <td width="85%">
                    <asp:TextBox ID="txtName" runat="server" CssClass="input w380 required" 
                        maxlength="250" minlength="1" HintTitle="姓名" HintInfo="姓名"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="15%" align="right">移动电话：</td>
                <td width="85%">
                    <asp:TextBox ID="txtMobileTel" runat="server" CssClass="input w380 required" 
                        maxlength="250" minlength="1" HintTitle="移动电话" HintInfo="移动电话"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="15%" align="right">车牌号：</td>
                <td width="85%">
                    <asp:TextBox ID="txtVehicleNo"  runat="server" CssClass="input w380 checkVehicle" MaxLength="20"
                            minlength="1" HintTitle="车牌号" HintInfo="车牌号"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="15%" align="right">预约时间：</td>
                <td width="85%">
                    <asp:TextBox ID="txtMemo1" runat="server" class="ui_timepicker" CssClass="input w380 required" 
                        maxlength="250" minlength="1" HintTitle="预约时间" HintInfo="预约时间"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="15%" align="right">代驾地点：</td>
                <td width="85%">
                    <asp:TextBox ID="txtAddress" runat="server" CssClass="input w380 required" 
                        maxlength="250" minlength="1" HintTitle="代驾地点" HintInfo="代驾地点"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="15%" align="right">代驾目的地：</td>
                <td width="85%">
                    <asp:TextBox ID="txtDestination" runat="server" CssClass="input w380 required" 
                        maxlength="250" minlength="1" HintTitle="代驾目的地" HintInfo="代驾目的地"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="15%" align="right">里程数：</td>
                <td width="85%">
                    <asp:TextBox ID="txtMileage" runat="server" CssClass="input w380" 
                        maxlength="250" minlength="1" HintTitle="里程数" HintInfo="里程数"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="15%" align="right">备注：</td>
                <td width="85%">
                    <asp:TextBox ID="txtRemarks" runat="server" CssClass="input w380" 
                            maxlength="250" minlength="1" HintTitle="备注" HintInfo="备注"></asp:TextBox>
                </td>
            </tr>
        </table>
        <div style="margin-top:10px;text-align:center;">
            <asp:Button ID="btnSave" runat="server" Text="确认保存" CssClass="submit" 
                onclick="btnSave_Click" />&nbsp;
            <input name="重置" type="reset" class="submit" value="重置" />
        </div>
    </form>
</body>
</html>